package com.wxx.main;

import java.util.Date;

public class TestDate {

	public static void main(String[] args) {
		Date date = new Date();
		System.out.println(">>>date>>>>>>"+date);
		//System.currentTimeMillis()
		System.out.println(">>>currentTimeMillis>>>>>>"+System.currentTimeMillis());
		Object o = date.clone();
		System.out.println(">>>o>>>>>>"+o);
		try {
			Thread.sleep(1000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		Date date1 = new Date();
		System.out.println(">>>before>>>>>>"+date.before(date1));
		System.out.println(">>>after>>>>>>"+date1.after(date));
		System.out.println(">>>equals>>>>>>"+date1.equals(date));
	}

}
